package com.laolei.zookeeper.core;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.data.Stat;

public interface CuratorFrameworkOperations<D> {

	String create(String path);

	String create(String path, D data);

	String creates(String path, D data);

	String create(String path, CreateMode createMode);

	String create(String path, CreateMode createMode, D data);

	String creates(String path, CreateMode createMode, D data);

	void delete(String path);

	Stat set(String path, D data);

	D get(String path);

	void disconnect();

	boolean exists(String path);

}
